<?php

namespace App\Policies;


use App\Models\Conf\Site;
use App\Models\User;

class SitePolicy extends Policy
{
    public function index(User $user, Site $site)
    {
        return $user->can('manage_site');
    }

    public function create(User $user, Site $site)
    {
        return $user->can('manage_site');
    }

    public function update(User $user, Site $site)
    {
        return $user->can('manage_site');
    }

    public function destroy(User $user, Site $site)
    {
        return $user->can('manage_site');
    }

    public function bonusPoint(User $user, Site $site)
    {
        return $user->can('self_site');
    }

    public function bonusPointLog(User $user, Site $site)
    {
        return $user->can('self_site');
    }

    public function depositLog(User $user, Site $site)
    {
        return $user->can('site_agent_public');
    }

    public function platMutualTransfer(User $user, Site $site)
    {
        return $user->can('site_mutual_transfer');
    }
}
